package com.ruoyi.oos.self.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.oos.self.mapper.OverrunRecordSelfMapper;
import com.ruoyi.oos.self.domain.OverrunRecordSelf;
import com.ruoyi.oos.self.service.IOverrunRecordSelfService;
import com.ruoyi.common.core.text.Convert;

/**
 * 超限记录Service业务层处理
 * 
 * @author wzy1
 * @date 2020-07-06
 */
@Service
public class OverrunRecordSelfServiceImpl implements IOverrunRecordSelfService 
{
    @Autowired
    private OverrunRecordSelfMapper overrunRecordSelfMapper;

    /**
     * 查询超限记录
     * 
     * @param id 超限记录ID
     * @return 超限记录
     */
    @Override
    public OverrunRecordSelf selectOverrunRecordSelfById(Long id)
    {
        return overrunRecordSelfMapper.selectOverrunRecordSelfById(id);
    }

    /**
     * 查询超限记录列表
     * 
     * @param overrunRecordSelf 超限记录
     * @return 超限记录
     */
    @Override
    public List<OverrunRecordSelf> selectOverrunRecordSelfList(OverrunRecordSelf overrunRecordSelf)
    {
        return overrunRecordSelfMapper.selectOverrunRecordSelfList(overrunRecordSelf);
    }

    /**
     * 新增超限记录
     * 
     * @param overrunRecordSelf 超限记录
     * @return 结果
     */
    @Override
    public int insertOverrunRecordSelf(OverrunRecordSelf overrunRecordSelf)
    {
        return overrunRecordSelfMapper.insertOverrunRecordSelf(overrunRecordSelf);
    }

    /**
     * 修改超限记录
     * 
     * @param overrunRecordSelf 超限记录
     * @return 结果
     */
    @Override
    public int updateOverrunRecordSelf(OverrunRecordSelf overrunRecordSelf)
    {
        return overrunRecordSelfMapper.updateOverrunRecordSelf(overrunRecordSelf);
    }

    /**
     * 删除超限记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteOverrunRecordSelfByIds(String ids)
    {
        return overrunRecordSelfMapper.deleteOverrunRecordSelfByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除超限记录信息
     * 
     * @param id 超限记录ID
     * @return 结果
     */
    public int deleteOverrunRecordSelfById(Long id)
    {
        return overrunRecordSelfMapper.deleteOverrunRecordSelfById(id);
    }
}
